/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.facade.convert;

import org.grayrabbit.pay.core.biz.vo.ChinapnrTradeVo;
import org.grayrabbit.pay.facade.bean.ChinapnrTrade;

/**
 * 
 * @author wy
 * @version $Id: ChinapnrTradeConvert.java, v 0.1 2012-11-6 下午3:25:38 wy Exp $
 */
public class ChinapnrTradeConvert {

    /**
     * 转换为VO
     * 
     * @param chinapnrTrade
     * @param chinapnrTradeVo
     */
    public static void convert(final ChinapnrTrade chinapnrTrade,
                               final ChinapnrTradeVo chinapnrTradeVo) {

        chinapnrTradeVo.setOrderId(chinapnrTrade.getOrderId());
        chinapnrTradeVo.setMoney(chinapnrTrade.getMoney().getMoneyFen());
        chinapnrTradeVo.setMemo(chinapnrTrade.getMemo());

        chinapnrTradeVo.setCardNo(chinapnrTrade.getCardNo());

        chinapnrTradeVo.setValidDate(chinapnrTrade.getValidDate());

        chinapnrTradeVo.setCvv2(chinapnrTrade.getCvv2());

        chinapnrTradeVo.setIdType(chinapnrTrade.getIdType());
        chinapnrTradeVo.setIdNo(chinapnrTrade.getIdNo());

        chinapnrTradeVo.setIdName(chinapnrTrade.getIdName());

        chinapnrTradeVo.setMobNo(chinapnrTrade.getMobNo());
        chinapnrTradeVo.setGate(chinapnrTrade.getGate());
        chinapnrTradeVo.setUser(chinapnrTrade.getUser());
        chinapnrTradeVo.setName(chinapnrTrade.getName());
        chinapnrTradeVo.setSystemCode(chinapnrTrade.getSystemCode());
    }

}
